<?php
$rst = cmsdream_login::submit($this->config->WP_URL['login'], 'action=logout');
if(isset($rst->_wpnonce)) {
	$rst = cmsdream_login::submit($this->config->WP_URL['login'], 'action=logout&_wpnonce='.$rst->_wpnonce);
	if($rst->status['number']==302){
		cmsdream_login::save_sc($rst->cookie);
		header("Location:$backurl");
		exit;
	}
}
header("Location:$backurl");

